package com.day1012.morning;
public class Teacher {
    private String name;
    private String hobby;
    private int age;
    public Teacher(){
    }
    public Teacher(String name,String hobby,int age){
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
    this.name = name;
    }
    public String getHobby() {
        return hobby;
    }
    public void setHobby(String hobby) {
        this.hobby = hobby;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
}
}//  main  方法写无参构造 有参构造  get、set方法